package com.byf.goods.controller;

import com.byf.common.core.domain.Result;
import com.byf.goods.GoodsApplication;
import com.byf.goods.domain.req.GoodsReq;
import com.byf.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GoodsController {
    @Autowired
    private GoodsService service;

    @GetMapping("getGoods")
    public List<GoodsReq> getGoods(){
        List<GoodsReq> goodsReq=service.getGoods();
        return goodsReq;
    }
}
